package finalproject.bd1.model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the execution_service database table.
 * 
 */
@Entity
@Table(name="execution_service")
public class ExecutionService extends AbstractEntity implements Serializable {
	private static final long serialVersionUID = 1L;

//	@Id
//	@SequenceGenerator(name="EXECUTION_SERVICE_ID_GENERATOR", sequenceName="EXECUTION_SERVICE_ID_SEQ")
//	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="EXECUTION_SERVICE_ID_GENERATOR")
//	@Column(unique=true, nullable=false)
//	private Integer id;

	@Temporal(TemporalType.DATE)
	@Column(name="es_execution_date")
	private Date esExecutionDate;

	@Column(name="es_note", length=150)
	private String esNote;

	//bi-directional many-to-one association to Employee
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="employee_id", nullable=false)
	private Employee employee;

	//bi-directional many-to-one association to OrderService
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="os_id", nullable=false)
	private OrderService orderService;

	//bi-directional many-to-one association to Service
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="service_id", nullable=false)
	private Service service;

	public ExecutionService() {
	}

//	public Integer getId() {
//		return this.id;
//	}
//
//	public void setId(Integer id) {
//		this.id = id;
//	}

	public Date getEsExecutionDate() {
		return this.esExecutionDate;
	}

	public void setEsExecutionDate(Date esExecutionDate) {
		this.esExecutionDate = esExecutionDate;
	}

	public String getEsNote() {
		return this.esNote;
	}

	public void setEsNote(String esNote) {
		this.esNote = esNote;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public OrderService getOrderService() {
		return this.orderService;
	}

	public void setOrderService(OrderService orderService) {
		this.orderService = orderService;
	}

	public Service getService() {
		return this.service;
	}

	public void setService(Service service) {
		this.service = service;
	}

}